package com.example.sonone.controller;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class TestScheduled {



    @Scheduled(cron="0/3 * * * * ?")
    public void test(){
        System.out.println(new Date());
    }
}
